package cn.kgc;

import cn.kgc.entity.User;
import cn.kgc.service.UserService;
import cn.kgc.service.impl.UserServiceImpl;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/6/27
 * @description
 */
public class TestUserService {

    public static void main(String[] args) {

        UserService userService = new UserServiceImpl();

        List<User> users = userService.userList();
        users.forEach(System.out::println);

        User user = userService.selectOne(1);
        System.out.println("user = " + user);


    }
}
